package ae.pcfc.cldos.online.common.clddb.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.envers.Audited;


/**
 * The persistent class for the T_CLDOS_AUDIT_TRIAL database table.
 * 
 */
@Entity
@Table(name="T_CLDOS_AUDIT_TRIAL")
@Audited
@SequenceGenerator(name = "SQ_CLDOS_AUDIT_ID", sequenceName = "SQ_CLDOS_AUDIT_ID", initialValue = 1, allocationSize = 1)
public class AuditTrial implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue( strategy = GenerationType.SEQUENCE, generator="SQ_CLDOS_AUDIT_ID")
	@Column(name="AUDIT_ID")
	private long auditId;

	private String operation;

	@Column(name="SQL_TEXT")
	private String sqlText;

	@Column(name="TABLE_NAME")
	private String tableName;

	private Timestamp timestamp;

	@Column(name="UNIQUE_OBJECT_ID")
	private String uniqueObjectId;

	@Column(name="USER_ID")
	private String userId;

	@Column(name="USER_NAME")
	private String userName;

    public AuditTrial() {
    }

	public long getAuditId() {
		return this.auditId;
	}

	public void setAuditId(long auditId) {
		this.auditId = auditId;
	}

	public String getOperation() {
		return this.operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public String getSqlText() {
		return this.sqlText;
	}

	public void setSqlText(String sqlText) {
		this.sqlText = sqlText;
	}

	public String getTableName() {
		return this.tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Timestamp getTimestamp() {
		return this.timestamp;
	}

	public void setTimestamp(Timestamp timestamp) {
		this.timestamp = timestamp;
	}

	public String getUniqueObjectId() {
		return this.uniqueObjectId;
	}

	public void setUniqueObjectId(String uniqueObjectId) {
		this.uniqueObjectId = uniqueObjectId;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}